package chapter13;

import java.util.Scanner;

/**
 * @author : DuJiabao
 * @Date : 2021/2/24 17:54
 * @Project : thinking_in_java
 * @File : null.java
 * @Desc :
 */
public class ScannerTest {
  public static void main(String[] args) {
    Scanner stdin = new Scanner(System.in);
    stdin.useDelimiter("\\s*,\\s*");
    System.out.println(stdin.delimiter());  // 查询当前的分隔符，`\s*,\s*`
    while (stdin.hasNextInt()) {
      System.out.println(stdin.nextInt());
    }
  }
}
